<!-- BEGIN SIDEBAR -->

<div class="page-sidebar nav-collapse collapse">

    <!-- BEGIN SIDEBAR MENU -->

    <ul class="page-sidebar-menu">
        <li>
            <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
            <div class="sidebar-toggler hidden-phone"></div>

            <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
        </li>
        <li>
            <!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->
            <form class="sidebar-search">
                <div class="input-box">
                    <a href="javascript:;" class="remove"></a>
                </div>

            </form>

            <!-- END RESPONSIVE QUICK SEARCH FORM -->

        </li>

        <li class="start active ">

            <a href="{:U('Index/index')}">

                <i class="icon-home"></i>

                <span class="title">首页</span>

                <span class="selected"></span>

            </a>

        </li>

        <?php
                $priModel = D('Privilege');
                $btns = $priModel->getBtns();
        foreach($btns as $k => $v): ?>
        <!--菜单开始-->
        <li class="">
            <a href="javascript:;">

                <i class="icon-bookmark-empty"></i>

                <span class="title"><?php echo $v['pri_name']?></span>

                <span class="arrow "></span>

            </a>
            <ul class="sub-menu">
                <?php foreach($v['children'] as $k1 => $v1): ?>
                <li >
                    <a href="<?php echo U($v1['module_name'].'/'.$v1['controller_name'].'/'.$v1['action_name']); ?>"
                       target="main-frame"><?php echo $v1['pri_name']?></a>
                </li>
                <?php endforeach; ?>
             <!--   <li >
                    <a href="{:U('Brand/lst')}">品牌列表</a>
                </li>
                <li >
                    <a href="{:U('Category/lst')}">分类列表</a>
                </li>
                <li >
                    <a href="{:U('Type/lst')}">类型列表</a>
                </li>-->
            </ul>

        </li>
        <?php endforeach; ?>
        <!--菜单结束-->

        <!--会员模块开始-->
       <!-- <li class="">

            <a href="javascript:;">

                <i class="icon-user"></i>

                <span class="title">会员模块</span>

                <span class="arrow "></span>

            </a>

            <ul class="sub-menu">

                <li >

                    <a href="{:U('Member/lst')}">会员列表</a>

                </li>

                <li >

                    <a href="login_soft.html">

                        Login Form 2</a>

                </li>

            </ul>

        </li>-->
        <!--会员模块结束-->

        <!--订单模块开始-->
       <!-- <li class="">

            <a href="javascript:;">

                <i class="icon-th"></i>

                <span class="title">订单模块</span>

                <span class="arrow "></span>

            </a>

            <ul class="sub-menu">

                <li >

                    <a href="{:U('Order/lst')}">订单详情</a>

                </li>

            </ul>

        </li>-->
        <!--订单模块结束-->

        <!--RBAC模块开始-->
       <!-- <li class="">

            <a href="javascript:;">

                <i class="icon-table"></i>

                <span class="title">RBAC</span>

                <span class="arrow "></span>

            </a>

            <ul class="sub-menu">

                <li >

                    <a href="{:U('Privilege/lst')}">权限列表</a>

                </li>

                <li >

                    <a href="{:U('Role/lst')}">角色列表</a>

                </li>

                <li >

                    <a href="{:U('Admin/lst')}">管理员列表</a>

                </li>

            </ul>

        </li>-->
        <!--RBAC模块结束-->

    </ul>

    <!-- END SIDEBAR MENU -->
</div>

<!-- END SIDEBAR -->